import request from '@/utils/request'

// 查询出款账户列表
export function listTransferAccount(query) {
  return request({
    url: '/account/transferAccount/list',
    method: 'get',
    params: query
  })
}

// 查询出款账户详细
export function getTransferAccount(transferAccountId) {
  return request({
    url: '/account/transferAccount/' + transferAccountId,
    method: 'get'
  })
}

// 新增出款账户
export function addTransferAccount(data) {
  return request({
    url: '/account/transferAccount',
    method: 'post',
    data: data
  })
}

// 修改出款账户
export function updateTransferAccount(data) {
  return request({
    url: '/account/transferAccount',
    method: 'put',
    data: data
  })
}

// 删除出款账户
export function delTransferAccount(transferAccountId) {
  return request({
    url: '/account/transferAccount/' + transferAccountId,
    method: 'delete'
  })
}

export function accountBookSubscribe(transferAccountId) {
  return request({
    url: '/account/transferAccount/accountBookSubscribe/' + transferAccountId,
    method: 'post'
  })
}


export function accountBookQuery(transferAccountId) {
  return request({
    url: '/account/transferAccount/accountBookQuery/' + transferAccountId,
    method: 'get'
  })
}


